home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / Notification.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  2.1 KB  |  78 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Notification.a
  3. ;
  4. ;    Contains:    Notification Manager interfaces
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__NOTIFICATION__') = 'UNDEFINED' THEN
  21. __NOTIFICATION__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  30.     include 'OSUtils.a'
  31.     ENDIF
  32. ;        include 'MixedMode.a'                                        ;
  33. ;        include 'Memory.a'                                            ;
  34. ; typedef struct NMRec         NMRec, *NMRecPtr
  35. NMRec                     RECORD    0
  36. qLink                     ds.l   1        ; offset: $0 (0)        ; next queue entry
  37. qType                     ds.w   1        ; offset: $4 (4)        ; queue type -- ORD(nmType) = 8
  38. nmFlags                     ds.w   1        ; offset: $6 (6)        ; reserved
  39. nmPrivate                 ds.l   1        ; offset: $8 (8)        ; reserved
  40. nmReserved                 ds.w   1        ; offset: $C (12)        ; reserved
  41. nmMark                     ds.w   1        ; offset: $E (14)        ; item to mark in Apple menu
  42. nmIcon                     ds.l   1        ; offset: $10 (16)        ; handle to small icon
  43. nmSound                     ds.l   1        ; offset: $14 (20)        ; handle to sound record
  44. nmStr                     ds.l   1        ; offset: $18 (24)        ; string to appear in alert
  45. nmResp                     ds.l   1        ; offset: $1C (28)        ; pointer to response routine
  46. nmRefCon                 ds.l   1        ; offset: $20 (32)        ; for application use
  47. sizeof                     EQU *            ; size:   $24 (36)
  48.                         ENDR
  49.  
  50. ;
  51. ; pascal OSErr NMInstall(NMRecPtr nmReqPtr)
  52. ;
  53.     IF ¬ GENERATINGCFM THEN
  54.         ; parameters: 
  55.         ;     nmReqPtr          => A0
  56.         ; returns: 
  57.         ;     OSErr             <= D0
  58.         _NMInstall:    OPWORD    $A05E
  59.     ELSE
  60.         IMPORT_CFM_FUNCTION    NMInstall
  61.     ENDIF
  62.  
  63. ;
  64. ; pascal OSErr NMRemove(NMRecPtr nmReqPtr)
  65. ;
  66.     IF ¬ GENERATINGCFM THEN
  67.         ; parameters: 
  68.         ;     nmReqPtr          => A0
  69.         ; returns: 
  70.         ;     OSErr             <= D0
  71.         _NMRemove:    OPWORD    $A05F
  72.     ELSE
  73.         IMPORT_CFM_FUNCTION    NMRemove
  74.     ENDIF
  75.  
  76. ; ------------------ 
  77.     ENDIF ; __NOTIFICATION__
  78.